//package com.kungfuhacking.wristbandpro.find.activity;
//
//import android.os.Bundle;
//import android.support.v7.widget.DefaultItemAnimator;
//import android.support.v7.widget.LinearLayoutManager;
//import android.support.v7.widget.RecyclerView;
//import android.view.View;
//
//import com.kungfuhacking.wristbandpro.R;
//import com.kungfuhacking.wristbandpro.base.view.BaseActivity;
//import com.kungfuhacking.wristbandpro.custom.TitleBarView;
//import com.kungfuhacking.wristbandpro.find.bean.CardListEntity;
//import com.kungfuhacking.wristbandpro.find.bean.OrderDetailBean;
//import com.kungfuhacking.wristbandpro.find.presenter.IOrderDetailPresenter;
//import com.kungfuhacking.wristbandpro.find.presenter.OrderDetailAdapter;
//import com.kungfuhacking.wristbandpro.find.view.IOrderDetailView;
//import com.kungfuhacking.wristbandpro.widget.swipe.DividerItemDecoration;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * 订单详情
// * Created by Aaron on 17/5/11.
// */
//
//public class OrderDetailActivity extends BaseActivity implements IOrderDetailView {
//
//    private String phoneNum;
//    private List<CardListEntity> cardList = new ArrayList<>();
//    private IOrderDetailPresenter iOrderDetailPresenter = new IOrderDetailPresenter(this);
//    private android.support.v7.widget.RecyclerView recycleView;
//    private OrderDetailAdapter orderDetailAdapter;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//
//        setContentView(R.layout.activity_order_detail);
//
//        initWidget();
//
//        if (bundle != null)
//            phoneNum = bundle.getString("phoneNum");
//
//        iOrderDetailPresenter.orderDetail(phoneNum);
//
//    }
//
//    private void initWidget() {
//        this.recycleView = (RecyclerView) findViewById(R.id.recycleView);
//        TitleBarView tbv = (TitleBarView) findViewById(R.id.tbv);
//        tbv.setOnLeftClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                finish();
//            }
//        });
//        initRecycleView();
//    }
//
//    private void initRecycleView() {
//
//        recycleView.setLayoutManager(new LinearLayoutManager(this));
//        recycleView.setItemAnimator(new DefaultItemAnimator());
//        orderDetailAdapter = new OrderDetailAdapter(this, cardList);
//        recycleView.setAdapter(orderDetailAdapter);
//        recycleView.addItemDecoration(new DividerItemDecoration(this,
//                DividerItemDecoration.VERTICAL_LIST,
//                getResources().getDrawable(R.color.bg_gray)));
////        recycleView.addOnItemTouchListener(new OnItemClickListener(recycleView) {
////            @Override
////            public void onItemClick(RecyclerView.ViewHolder holder, int position) {
////
////            }
////
////            @Override
////            public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
////
////            }
////        });
//
//    }
//
//    @Override
//    protected void onDestroy() {
//        super.onDestroy();
//        iOrderDetailPresenter.clearRequest();
//    }
//
//    @Override
//    public void setAdapterInfo(OrderDetailBean adapterInfo) {
//        orderDetailAdapter.setIdentity(adapterInfo.getIdentity());
//        orderDetailAdapter.setCardList(adapterInfo.getCardList());
//        orderDetailAdapter.notifyDataSetChanged();
//    }
//}
